import { Component, Input, OnInit } from '@angular/core';
import { ModalController } from '@ionic/angular';
@Component({
  selector: 'app-custom-area',
  templateUrl: './custom-area.component.html',
  styleUrls: ['./custom-area.component.scss'],
})
export class CustomAreaComponent implements OnInit {

  @Input() tagData;
  item = { displayName: '自定义', max: undefined, min: undefined };
  constructor(public modalController: ModalController) { }

  ngOnInit() {
  }

  defineArea(e, item) {
    e.stopPropagation();
    this.modalController.dismiss({ dismissed: true, itemdata: item });
  }

  onDismiss1() {
    this.modalController.dismiss({ dismissed: true, itemData: null });
  }
  stopEvent(e) {
    e.stopPropagation();
  }
}
